﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using WCS_Entity.Prorocol;

namespace WCS_Entity.AutoQeuipment
{
    /// <summary>
    /// 自动化设备管理表
    /// </summary>
    [SugarTable("WCS_AutoEquipment", TableDescription = "自动化设备表")]
    public class AutoEquipmentsEntity
    {
        /// <summary>
        /// 自动化设备ID
        /// </summary>
        [Display(Name = "自动化设备ID")]
        [SugarColumn(ColumnDescription = "自动化设备ID", IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 id { get; set; }
        /// <summary>
        /// 设备的编号
        /// </summary>
        [Display(Name = "设备编号")]
        [SugarColumn(ColumnDescription = "设备编号")]
        public string equipmentNumber { get; set; }
        /// <summary>
        /// 自动化设备类型
        /// </summary>
        [Display(Name = "自动化设备类型")]
        [SugarColumn(ColumnDescription = "自动化设备类型")]
        [Required(ErrorMessage = "请输入有效值")]
        public string equipmentType { get; set; }
        /// <summary>
        /// 自动化设备通信类型
        /// </summary>
        [Display(Name = "通信类型")]
        [SugarColumn(ColumnDescription = "通信类型")]
        [Required(ErrorMessage = "请输入有效值")]
        public string comType { get; set; }
        /// <summary>
        /// 协议类型
        /// </summary>
        [Display(Name = "协议类型")]
        [SugarColumn(ColumnDescription = "协议类型")]
        public string protocolType { get; set; }
        /// <summary>
        /// 设备Ip地址
        /// </summary>
        [Display(Name = "Ip地址")]
        [SugarColumn(ColumnDescription = "Ip地址")]
        public string ip {  get; set; }
        /// <summary>
        /// 设备端口
        /// </summary>
        [Display(Name = "设备端口")]
        [SugarColumn(ColumnDescription = "设备端口")]
        public int port { get; set; }
        /// <summary>
        /// 状态[1正常2停用]
        /// </summary>
        [Display(Name = "状态[1正常2停用]")]
        [SugarColumn(ColumnDescription = "状态[1正常2停用]")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 status { get; set; }
        /// <summary>
        /// 地图中的点位
        /// </summary>
        [Display(Name = "地图中的点位")]
        [SugarColumn(ColumnDescription = "地图中的点位")]
        public string MapSite { get; set; }
        /// <summary>
        /// 所属区域
        /// </summary>
        [Display(Name = "设备所属区域")]
        [SugarColumn(ColumnDescription = "设备所属区域")]
        public string AreaCode { get; set; }
        /// <summary>
        /// 所属地图编号
        /// </summary>
        [Display(Name = "设备所属地图编号")]
        [SugarColumn(ColumnDescription = "设备所属地图编号")]
        public string MapCode { get; set; }
        /// <summary>
        /// 预留字段1
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND1")]
        public string Extend1 { get; set; }

        /// <summary>
        /// 预留字段2
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND2")]
        public string Extend2 { get; set; }

        /// <summary>
        /// 预留字段3
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND3")]
        public string Extend3 { get; set; }

        /// <summary>
        /// 预留字段4
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND4")]
        public string Extend4 { get; set; }

        /// <summary>
        /// 预留字段5
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND5")]
        public string Extend5 { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [SugarColumn(ColumnDescription = "创建时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime createTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [Display(Name = "更新时间")]
        [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
        public System.DateTime? updataTime { get; set; }
        /// <summary>
        /// 删除标志 有数据就是删除
        /// </summary>
        [Display(Name = "删除标志 有数据就是删除")]
        [SugarColumn(ColumnDescription = "删除标志 有数据就是删除")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Boolean isDelete { get; set; }

    }
}
